package com.walter.mail.integration;

import com.walter.mail.MailService;
import com.walter.mail.configuration.MailProperties;
import org.noear.solon.core.AppContext;
import org.noear.solon.core.Plugin;

/**
 * 邮件发送插件
 *
 * @author wuchenxi03
 * @date 2025/7/28
 */
public class MailPlugin implements Plugin {

    @Override
    public void start(AppContext context) throws Throwable {
        // 插件启动时自动注册邮件相关组件
        context.beanMake(MailProperties.class);
        context.beanMake(MailService.class);
    }

    @Override
    public void stop() throws Throwable {
        // 插件停止时的操作
    }
}